import { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect:'/skweatherlive',
  },
  {
    path: '/skweatherlive',
    name:'skweatherlive',
    component: () => import('@/components/skweatherlive.vue'),
    meta: {
      parentId: '/skweatherlive',
      title: '实况监测-天气实况',
      path: '/skweatherlive'
    }
  },
  {
    path: '/skweatherlive-pic',
    name:'skweatherlive-pic',
    component: () => import('@/components/skweatherlivepic.vue'),
    meta: {
      parentId: '/skweatherlivepic',
      title: '实况监测-天气实况图片',
      path: '/skweatherlivepic'
    }
  },

  {
    path: '/skclimateBg',
    name:'skclimateBg',
    component: () => import('@/components/skclimateBg.vue'),
    meta: {
      parentId: '/skclimateBg',
      title: '实况监测-气候背景',
      path: '/skclimateBg'
    }
  },

  {
    path: '/ybwarninfo',
    name:'ybwarninfo',
    component: () => import('@/components/ybwarninfo.vue'),
    meta: {
      parentId: '/ybwarninfo',
      title: '预告预警-预警信息',
      path: '/ybwarninfo'
    }
  },
  {
    path: '/ybweatherforecast',
    name:'ybweatherforecast',
    component: () => import('@/components/ybweatherforecast.vue'),
    meta: {
      parentId: '/ybweatherforecast',
      title: '预告预警-天气预报',
      path: '/ybweatherforecast'
    }
  },

  {
    path: '/specialReport/:taskId',
    name:'specialReport',
    component: () => import('@/components/specialReport.vue'),
    meta: {
      parentId: '/specialReport',
      title: '专题报告-模板',
      path: '/specialReport'
    }
  }
];

export default routes;
